package Test_week_04;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

public class StringMap {
    public static void main(String[] args) {
        Map newMap = new HashMap();
        newMap.put(1,"zhangsan");
        newMap.put(2,"lisi");
        newMap.put(3,"wangwu");
        Object[] keyArr = newMap.keySet().toArray();
        Object[] valueArr = new Object[3];
        for(int i=0;i<keyArr.length;i++){
            valueArr[i] = newMap.get(keyArr[i]);
        }
        System.out.println(Arrays.toString(valueArr));
    }
}
